package com.sais.manage.boot;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 宿舍管理系统-启动类
 *
 * @author zhang
 * @date 2019/11/30
 **/
@Slf4j
@EnableAsync
@SpringBootApplication
@ComponentScan(basePackages = {"com.sais"})
@MapperScan(basePackages = {"com.sais.**.mapper"})
@EnableTransactionManagement
public class ManageApplication {

    public static void main(String[] args) {
        SpringApplication.run(ManageApplication.class, args);
    }

}
